package com.baizhi.hospital.controller;

import com.baizhi.hospital.annotation.LogAnnotation;
import com.baizhi.hospital.service.DrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class DrugController {
    @Autowired
    private DrugService drugService;
    @RequestMapping("selectDrugByPage")
    //@LogAnnotation(value = "查询药品信息",type = "selectDrugByPage")
    public Map selectDrugByPage(int page,int limit,String name){
        return drugService.selectDrugByPage(page, limit, name);
    }
}
